#include <iostream>
#include <string>

void print(std::ostream& os, int k) {
    if (k % 2 == 0) return;
    for (int i = 1; i <= k / 2; ++i) {
        os << std::string(k / 2 - i + 1, ' ');
        os << std::string(2 * i - 1, '*');
        os << "\n";
    }
    os << std::string(k, '*') << "\n";
    for (int i = k / 2; i >= 1; --i) {
        os << std::string(k / 2 - i + 1, ' ');
        os << std::string(2 * i - 1, '*');
        os << "\n";
    }
}

auto main() -> int {
    print(std::cout, 5);
}
